package edu.uis.project.frankszoo.model.event;

import java.util.EventObject;

/**
 * This class extends the EventObject and represents the HandStartedEvent
 *
 */
public class HandStartedEvent extends EventObject {

	private static final long serialVersionUID = -4175237286805493970L;

	Integer handNo;// Serial No of the hand
	String dealerID;// ID of the dealer for the hand

	/**
	 * This is the constructor for the HandStartedEvent
	 * 
	 * @param source
	 *            component that originated the event
	 * @param handNo
	 *            Serial No of the hand
	 * @param dealerID
	 *            ID of the dealer for the hand
	 */
	public HandStartedEvent(Object source, Integer handNo, String dealerID) {
		super(source);
		this.handNo = handNo;
		this.dealerID = dealerID;
	}

	/**
	 * Returns the serial no of the hand
	 * 
	 * @return handNo Serial No of the hand
	 */
	public Integer getHandNo() {
		return handNo;
	}

	/**
	 * Returns the ID of the dealer for the hand
	 * 
	 * @return dealerID ID of the dealer for the hand
	 */
	public String getDealerID() {
		return dealerID;
	}

}
